package edu.mit.media.fv.events
{
	import flash.events.Event;
	import flash.utils.Dictionary;
	
	public class DisplayEvent extends Event
	{
		
        public static const OPEN_POLL:String = "openPoll";
		public static const OPEN_IM:String = "openIM";
		public static const OPEN_TEXT:String = "openText";
		public static const OPEN_VOICE:String = "openVoice";
		public static const OPEN_USER:String = "openUser";
		public static const OPEN_GROUP:String = "openGroup";
		public static const OPEN_POLL_RESULT:String = "openPollResult";
		public static const OPEN_SHOPPING:String = "openShopping";
		public static const OPEN_PIX:String = "openPix";
		public static const OPEN_TIVO:String = "openTivo";
		
		public static const STATS_POLL:String = "statsPoll";
		public static const STATS_TEXT:String = "statsText";
		public static const STATS_VOICE:String = "statsVoice";
        
		public var id:int = -1;
		public var subject:String;
		public var question:String;
        public var questionID:int;
		public var category:int;
		public var choices:Array;
		public var sourceName:String;
		public var sourceID:int;
		public var text:String;
		public var audioID:int;
		public var name:String;
		public var volume:Number;
		public var balance:Number;
		public var quality:Boolean;
		public var users:Array;
		public var date:String;
		public var results:Dictionary;
		public var store:String;
		public var duration:String;
		
		public function DisplayEvent(type:String, id:int = -1)
		{
			super(type);
			this.id = id;
			this.audioID = id;
			this.date = new Date().toDateString();
		}

	}
}